<template>
	<view class="content">
		<cu-custom bgColor="head2" :isBack="true">
			<block slot="backText"></block>
			<block slot="content">装车复核保存</block>
		</cu-custom>
		<view class="Search" style="flex-direction: column;height: 354rpx;">
			<input type="text" v-model="wmToDownGoodsstr.id" placeholder="id" />
			<input type="text" v-model="wmToDownGoodsstr.updateBy" placeholder="updateBy" />
			<input type="text" v-model="wmToDownGoodsstr.goodsQuaok" placeholder="goodsQuaok" />
			<button class="btn" @click="saveTruckLoadingCheck" type="default" >保存</button>		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wmToDownGoodsstr: {
	                id:"",
	                updateBy: "",
                    goodsQuaok: ""
                },
				// wmToDownGoodsstr: {
				//     id:"4028813481985f4c01819860e65a0000",
				//     updateBy: "admin",
				//     goodsQuaok: "1"
				// }
			}
		},
		methods: {		
			saveTruckLoadingCheck() { // 装车复核保存
				this.$http.post(`wms/rest/pdaapi/wmToDownGoodsController/change?wmToDownGoodsstr=${JSON.stringify(this.wmToDownGoodsstr)}`).then(res => {
					console.log(res)
					this.wmToDownGoodsstr={
					    id:"",
					    updateBy: "",
					    goodsQuaok: ""
					}
				})	
			}

	    }
	}
</script>

<style lang="less">
	.content {
		width: 100%;
		height: 100vh;
		background-color: #F3F4F6;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		.Search{
			width: 100%;
			height: 101rpx;
			background: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;
			input{
				margin-top: 16rpx;
				padding-left: 36rpx;
				width: 92.66%;
				height: 70rpx;
				background: #F3F4F6;
				border-radius: 30px;
				font-size: 28rpx;
				font-weight: 400;
			}
			.btn {
				background-color: #3194de; 
				width: 100px; 
				height: 50px; 
				margin: 20px 0;
				color: #fff;
				font-size: 16px;
				
			}
			
		}
	}
	
</style>
